package aimis.repo;

import aimis.domain.Monitor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Mapper
public interface MonitorMapper extends BaseMapper<Monitor> {

    @Select("select * from monitor")
    List<Monitor> getAll();

    @Select("select * from monitor where date = #{date}")
    List<Monitor> getByLikeName(String date);

    boolean add(Monitor monitor);
}
